package com.eve.api.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.PushButton;
import com.google.gwt.user.client.ui.VerticalPanel;

public class Characters extends Composite {

	private VerticalPanel vpanel;
	
	public Characters() {
		vpanel = new VerticalPanel();
		vpanel.setSpacing(20);
		initWidget(vpanel);
	}
	
	public void addCharacter(long id) {
		String url = "http://image.eveonline.com/Character/" + String.valueOf(id) + "_128.jpg";
		Image characterImage = new Image(url);
		PushButton characterBtn = new PushButton(characterImage);
		vpanel.add(characterBtn);
	}

}
